var mongoose = require('mongoose');

const Schema = mongoose.Schema;

const userSchema = new Schema({
    name: String,
    organizationId: String,
    phone: Number,
    sex: String,
    password: String,
    role: String
}, { timestamps: { createAt: 'created', updatedAt: 'updated' }, versionKey: false })

const User = mongoose.model('user', userSchema);

module.exports = User